import request from '@/utils/request.js'
const api_name = '/portal/study'

// 获取最新学习记录
export function getStudy (data) {
  return request({
    url: `${api_name}`,
    method: 'get',
    params: data
  })
}

// 提交最新学习记录
export function addStudy (data) {
  return request({
    url: `${api_name}`,
    method: 'post',
    data
  })
}

export function getUserStudyPageList (page,limit,userId) {
  return request({
    url: `${api_name}/${page}/${limit}/${userId}`,
    method: 'get'
  })
}

